package cn.huiyunche.bms.backend.util;

/**
 * Created by zhaoguixin on 2017/7/7.
 */
public class UniquenessUtil {

    /**
     * @param prifix 前缀
     * @return
     * @Title: generateUniquenessFlag
     * @Description: 根据前缀生成唯一性标示
     * @return: String
     */
    public static String generateUniquenessFlag(String prifix) {
        IdSnowFlake id = new IdSnowFlake();
        return String.valueOf(prifix + id.getId());
    }

}
